<?php

/* SVN FILE: $Id: restricted_controller.php 107 2007-04-14 17:07:09Z Andy $ */

/**
 * Short description for file.php.
 *
 * Long description for file
 *
 * PHP versions 4 and 5
 *
 * Copyright (c), Andy Dawson
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright    Copyright (c) 2007, Andy Dawson
 * @package      noswad
 * @subpackage   noswad.app.plugins.pagination.controllers
 * @since        Noswad site version 3
 * @todo         TODO Edit this block
 * @version      $Revision: 107 $
 * @created      26/01/2007
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date: 2007-04-14 19:07:09 +0200 (sáb, 14 abr 2007) $
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Short description for Class
 *
 * Long descrption of Class
 */

/**
 * Description for var
 *
 * @var type
 * @access public/private/protected
 */

/**
 * Description for method
 *
 * @param type $name description
 * @return type description
 */
class RestrictedController extends PaginationAppController {
	var $name= 'Restricted'; // required for PHP4 installs

	function beforeFilter() {
		$this->Pagination->paramStyle= "pretty"; // overiding
		$this->Pagination->paramSeperator= ":"; // overiding
		$this->Pagination->privateParams= array (
			"show",
			"sortBy",
			"sortByClass",
			"direction"
		); // overiding
		$this->Pagination->ajaxAutoDetect= false; // overiding
		$this->viewPath= 'normal'; // Use the generic views
		$this->_addFlash("Note that it isn't possible to change the parameters: show, sortBy, sortByClass or direction. <br />It is only possible to change the page number.");
		parent :: beforeFilter();
	}

	function _defineContextMenus() {
		return array ();
	}
}
?>